package com.example.databindingdemo.util;

public class DateUtil {
    /**
     * 获取星期
     * @return
     */
    public static String getWeek(int num){
        switch (num){
            case 1:
                return "星期一";
            case 2:
                return "星期二";
            case 3:
                return "星期三";
            case 4:
                return "星期四";
            case 5:
                return "星期五";
            case 6:
                return "星期六";
            default:
                return "星期天";
        }
    }
}
